﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Item_child.aspx.cs" Inherits="WebControls_Item" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/main.css" rel="stylesheet" type="text/css" />
    <style>
        .metro-button { display: inline-block; padding: 2px 10px; border: solid 2px white; color: white; text-decoration: none; margin: 10px 0; }
        .txt
    {
        width:300px;
        border:1px solid gray;
        height:30px;
        }
        .formDiv
        {
            height:40px;
            }
    </style>
</head>
<body>
   <form id="form1" runat="server">
  
<div class="pageHeader" style="margin-left:50px; margin-top:20px;"><a href="../Home.aspx">
<img src="../Resources/back.png" style="height: 42px; margin-right:30px;" /></a>
<asp:Label ID="lblitemName" Text="Item Child Detail" runat="server"></asp:Label></div>
<%--<div style="overflow-x:scroll ; overflow-y: hidden; padding-bottom:10px;">--%>
    
  <div>
 <div class="imgfloating">
 <div style="font-size:11pt; float:left;">
 <div style="float:left; width:201px; margin-right:10px;">
<%-- <div class="formDiv">Category:</div>--%>
 <div class="formDiv">Item Child Title:</div>
 <div class="formDiv">Item Child Tag:</div>
 <div class="formDiv">Item Child Description:</div>
 <div class="formDiv">Item Child item Image:</div>
 </div>
 <div style="float:left; width:300px;">
 <%-- <div class="formDiv"><asp:DropDownList runat="server" CssClass="txt" ID="ddlMainCat" Height="30"></asp:DropDownList></div>--%>
  <div class="formDiv"><asp:TextBox CssClass="txt" ID="txtitemTitle" runat="server"></asp:TextBox></div>
 <div class="formDiv"> <asp:TextBox CssClass="txt" ID="txtitemTag" runat="server"></asp:TextBox></div>
 <div class="formDiv"><asp:TextBox CssClass="txt" ID="txtitemDsc" runat="server" 
         TextMode="MultiLine"></asp:TextBox></div>
 <div class="formDiv"><asp:FileUpload runat="server" CssClass="txt" ID="ImageUploder"/></div>
 <div class="formDiv">
     <asp:Button runat="server" ID="additem" Text="ADD" 
         CssClass="txt"  Width="116px" onclick="additem_Click"/></div>

 </div>
 </div>
 <div style="font-size:11pt; float:left;margin-left:40px;">
 <asp:GridView ID="grditemDetial" runat="server" AutoGenerateColumns="false" 
         PageSize="5">
 <Columns>
 <asp:TemplateField HeaderText="Item Title">
 <ItemTemplate>
 <%#Eval("SubitemTitle") %>
 </ItemTemplate>
 </asp:TemplateField>
 <asp:TemplateField HeaderText="Item Tag">
 <ItemTemplate>
 <%#Eval("SubItemTag") %>
 </ItemTemplate>
 </asp:TemplateField>
 <asp:TemplateField HeaderText="Item Description">
 <ItemTemplate>
 <%#Eval("SubitemDsc") %>
 </ItemTemplate>
 </asp:TemplateField>

 <asp:TemplateField HeaderText="Item Image">
 <ItemTemplate>
 
 <img src='<%#"../"+Eval("SubitemIMagePath") %>' width="120" height="120"/>
 </ItemTemplate>
 </asp:TemplateField>
 </Columns>
 </asp:GridView>
 </div>
 </div>
   </div> 
 <%-- 
  </div>--%>



 
    </form>
</body>
</html>
